﻿function haed1_click() {

document.getElementById("haed1").className='wtmtcCSS wtmtccCSS';
document.getElementById("divhead1").className='wtmticCSS';
document.getElementById("haed2").className='wtmtcCSS wtmtcuCSS';
document.getElementById("divhead2").className='wtmtiuCSS';
document.getElementById("haed3").className='wtmtcCSS wtmtcuCSS';
document.getElementById("divhead3").className='wtmtiuCSS';
document.getElementById("a").click();
}

function haed2_click() {

document.getElementById("haed1").className='wtmtcCSS wtmtcuCSS';
document.getElementById("divhead1").className='wtmtiuCSS';
document.getElementById("haed2").className='wtmtcCSS wtmtccCSS';
document.getElementById("divhead2").className='wtmticCSS';
document.getElementById("haed3").className='wtmtcCSS wtmtcuCSS';
document.getElementById("divhead3").className='wtmtiuCSS';
document.getElementById("b").click();
getSite();
}

function haed3_click() {

document.getElementById("haed1").className='wtmtcCSS wtmtcuCSS';
document.getElementById("divhead1").className='wtmtiuCSS';
document.getElementById("haed2").className='wtmtcCSS wtmtcuCSS';
document.getElementById("divhead2").className='wtmtiuCSS';
document.getElementById("haed3").className='wtmtcCSS wtmtccCSS';
document.getElementById("divhead3").className='wtmticCSS';
document.getElementById("c").click();
getDx();
}

$(function(){
	$("#tabset1").buildMbTabset({
		stop:function(){if ($("#array").is(":checked")) alert($.mbTabset.mbTabsetArray)},
		sortable:true
	});
});

function getSite()
{
    $("#tabsite").html("");
    $.getJSON("getTabsite.ashx",function(json){
    $.each(json,function(i){
    $("#tabsite").prepend(json[i].value);
    })
    })
}

function getDx()
{
    $("#tabdx").html("");
    $.getJSON("getDx.ashx",function(json){
    $.each(json,function(i){
    $("#tabdx").prepend(json[i].value);
    })
    })
}